import IP2Region from "./node-ip2region/src/lib/index";
const query = new IP2Region();
const res = query.search('120.24.78.68');
console.log(res);
// > { country: '中国', province: '广东省', city: '深圳市', isp: '阿里云' }
// const res2 = query.search('240e:47d:c20:1627:30a3:ba0d:a5e6:ec19');
// console.log(res2);
// > { country: "中国", province: "广东省", city: "", isp: "中国电信" }